export default {
  get orderCheckParams():any {
    const orderCheckParamsStr = localStorage.getItem('orderCheckParams')
    let orderCheckParamsObj = orderCheckParamsStr && orderCheckParamsStr != null ? JSON.parse(orderCheckParamsStr) : undefined
    return orderCheckParamsObj
  },
  set orderCheckParams(value:any) {
    if (value == null) {
      localStorage.setItem('orderCheckParams', null)
    }else{
      localStorage.setItem('orderCheckParams', JSON.stringify(value))
    }   
  }
}